﻿using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Windows;
using GalaSoft.MvvmLight.Ioc;
using SpreadsheetGear;
using SpreadsheetGear.Windows.Controls;
using WPFWorkbookDesigner.ViewModel;

namespace WPFWorkbookDesigner
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        private MainViewModel viewModel => DataContext as MainViewModel;

        [PreferredConstructor]
        public MainWindow()
        {
            InitializeComponent();
            //Closing += (s, e) => ViewModelLocator.Cleanup();
        }

        public MainWindow(IWorkbookSet bookSet) : this()
        {

        }
    }
}